import request from '@/utils/request'

export default {
  //生成订单
  createOrder(cousrseId) {
    return request({
      url: '/eduorder/order/createOrder/' + cousrseId,
      method: 'post'
    })
  },
  //根据订单号，查询订单信息
  getOrderInfo(orderNo) {
    return request({
      url: '/eduorder/order/getOrderInfo/' + orderNo,
      method: 'get'
    })
  },
  //根据订单号，生成二维码
  createWXPay(orderNo) {
    return request({
      url: '/eduorder/paylog/createWXPay/' + orderNo,
      method: 'get'
    })
  },
  //根据订单号，查询订单状态
  queryPayStatus(orderNo) {
    return request({
      url: '/eduorder/paylog/queryPayStatus/' + orderNo,
      method: 'get'
    })
  }
}
